home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / bits_dll / dlltest.frm < prev    next >
Text File  |  1995-09-06  |  2KB  |  90 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4020
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1770
  7.    ClientWidth     =   7365
  8.    Height          =   4710
  9.    Left            =   1035
  10.    LinkMode        =   1  'Source
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   4020
  13.    ScaleWidth      =   7365
  14.    Top             =   1140
  15.    Width           =   7485
  16.    Begin TextBox Text3 
  17.       Height          =   495
  18.       Left            =   5160
  19.       TabIndex        =   3
  20.       Text            =   "1"
  21.       Top             =   1320
  22.       Width           =   615
  23.    End
  24.    Begin TextBox Text1 
  25.       FontBold        =   -1  'True
  26.       FontItalic      =   0   'False
  27.       FontName        =   "Courier"
  28.       FontSize        =   9.75
  29.       FontStrikethru  =   0   'False
  30.       FontUnderline   =   0   'False
  31.       Height          =   3135
  32.       Left            =   360
  33.       MultiLine       =   -1  'True
  34.       ScrollBars      =   3  'Both
  35.       TabIndex        =   0
  36.       Text            =   "Results :"
  37.       Top             =   840
  38.       Width           =   3855
  39.    End
  40.    Begin TextBox Text2 
  41.       Height          =   495
  42.       Left            =   5160
  43.       TabIndex        =   2
  44.       Text            =   "1"
  45.       Top             =   720
  46.       Width           =   615
  47.    End
  48.    Begin CommandButton Command1 
  49.       Caption         =   "Command1"
  50.       Height          =   495
  51.       Left            =   360
  52.       TabIndex        =   1
  53.       Top             =   120
  54.       Width           =   1215
  55.    End
  56.    Begin Menu mnExit 
  57.       Caption         =   "E&xit"
  58.    End
  59. End
  60.  
  61. Sub Command1_Click ()
  62.     cr$ = Chr$(13) + Chr$(10)
  63.     e1% = Val(Text2.Text)
  64.     e2% = Val(Text3.Text)
  65.  
  66.     t$ = "e1 == " + Text2.Text + cr$
  67.     t$ = t$ + "e2 == " + Text3.Text + cr$
  68.     t$ = t$ + "------------------" + cr$
  69.  
  70.     t$ = t$ + " &  == " + Str$(bitAnd(e1%, e2%)) + cr$
  71.     t$ = t$ + " ^  == " + Str$(bitOr(e1%, e2%)) + cr$
  72.     t$ = t$ + " |  == " + Str$(bitXOr(e1%, e2%)) + cr$
  73.     t$ = t$ + " << == " + Str$(bitShiftLeft(e1%, e2%)) + cr$
  74.     t$ = t$ + " >> == " + Str$(bitShiftRight(e1%, e2%)) + cr$
  75.     
  76.     t$ = t$ + "High== " + Str$(byteHigh(e1%)) + cr$
  77.     t$ = t$ + "Low == " + Str$(byteLow(e1%)) + cr$
  78.     t$ = t$ + "Pack== " + Str$(bitPack(e1%, e2%)) + cr$
  79.  
  80.  
  81.     text1.Text = t$
  82.     
  83. End Sub
  84.  
  85. Sub mnExit_Click ()
  86.     End
  87.  
  88. End Sub
  89.  
  90.